package com.yitianyigexiangfa.designpattern.facade.hometheater.subsystem;

/**
 * @author Bill Lau
 * @date 2018-01-18
 */
public class CdPlayer {

    private Amplifier amplifier = new Amplifier();

    public void on() {
        System.out.println("CdPlayer on");
    }

    public void off() {
        System.out.println("CdPlayer off");
    }

    /**
     * 光盘弹出
     */
    public void eject() {
        System.out.println("CdPlayer eject");
    }

    public void pause() {
        System.out.println("CdPlayer pause");
    }

    public void play() {
        System.out.println("CdPlayer play");
    }

    public void stop() {
        System.out.println("CdPlayer stop");
    }

    @Override
    public String toString() {
        return "CdPlayer{" +
               "amplifier=" + amplifier +
               '}';
    }
}
